import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import router from './router'
import pinia from './stores'
import pina from './store'
import '@/styles/index.less'
import 'element-plus/dist/index.css'
import Condition from '@/components/Condition.vue'
import Sort from '@/components/Sort.vue'
import Video from '@/components/Video.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.component('Condition',Condition)
app.component('Sort',Sort)
app.component('Video',Video)

app.use(pinia)
    .use(router)
  .use(ElementPlus,{
    locale: zhCn,
  })
  .use(pina)
  .mount('#app')
